import wakeonlan

class Wakeonlan():
    def waken(self, mac):
        """
        唤醒某个mac地址
        :param mac:
        :return:
        """
        # 唤醒主机
        try:
            wakeonlan.send_magic_packet(mac)
            return True
        except Exception as e:
            return False